'use strict';
const requireEx=require('yi-require');
const $ = requireEx('yi-schema');
module.exports = {

    params: $.object({
        id: $.mongoid().required()
    }),
    query: $.object({
        project: $.object({
            _id: $.number().valid(0,1),
            filename: $.number().valid(0,1),
            contentType: $.number().valid(0,1),
            length: $.number().valid(0,1),
            chunkSize: $.number().valid(0,1),
            uploadDate: $.number().valid(0,1),
            aliases: $.number().valid(0,1),
            metadata: $.number().valid(0,1),
            md5: $.number().valid(0,1)
        }).description("返回列选择，值1返回，0不返回,注意：有0属性，其它列均返回，只有1属性，_id总是返回,除了_id,不能同时有0与1")
    })
}